package com.example.test.bean;

import lombok.Data;
import lombok.Getter;
import lombok.Setter;
import org.apache.commons.lang3.StringUtils;

/**
 * @description: 所有channel字段
 * @author: cuishang
 * @create: 2020/11/26 10:53
 **/
@Data
@Getter
@Setter
public class AreaChannel {

    private String channelId;

//    private String deviceId;

    private String channelName;

    private Integer serialNumber;

    private String realName;


    private Boolean channelEnabled;

    private Integer channelStatus;

    private String supportAbility;

    private String permission;

//    private String areaId;

    private boolean hasAuth = true;

    private String channelAreaId;

    private String channelDeviceSn;

    private String areaName;

//    private String deviceName;

    // 接入方式
    private String addingMethod;

    private String channelDeviceId;

    private String channelDeviceName;

    private String channelDeviceType;

    private Integer alarmGrade;


    private String longitude;

    private String latitude;

    private String channelClassify;

    private boolean hasMapPoint;

    private String channelBusinessType;

    public String getChannelName() {
        return StringUtils.isBlank(channelName) ? realName : channelName;
    }

}
